﻿using ET.DBCommon.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET.DBCommon.DAL
{
    public class EventRecordModelDAL
    {
        public static void AddEventRecord(List<EventRecordModel> list)
        {
            string sql = string.Empty;

            foreach (var item in list)
            {
                sql += "insert into EventRecordModel(ExamResultsID,QuestionID,EventLogType,Message,CreateTime) values('" + item.ExamResultsID + "','" + item.QuestionID + "','" + (int)item.EventLogType + "','" + item.Message + "','" + item.CreateTime + "'); ";
            }

            DbHelper.ExecuteNonQuery(sql);
        }
    }
}